using System.Collections.Generic;
using System.Linq;

namespace FwkLight.Application
{
  public static class ValidationDataExtensions
  {
    public static bool Contains ( this IList<ValidationData> list, CheckResultType resultType )
    {
      return list.FirstOrDefault(p => p.ResultType == resultType) != null;
    }
  }
}